package com.spzx.product.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "商品规格参数模型")
public class ProductSpec extends BaseEntity {

    @NotNull
    @Schema(description = "三级分类ID")
    private Long categoryId;

    @NotEmpty
    @Schema(description = "规格名称")
    private String specName;

    @Schema(description = "规格值")
    private String specValue;

    @TableField(exist = false)
    @Schema(description = "扩展属性：分类名称")
    private String categoryName;

}
